package org.pointex.dao.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.pointex.common.dao.impl.BaseDaoImpl;
import org.pointex.dao.CreditsRecordDao;
import org.pointex.domain.CreditsRecord;
import org.springframework.stereotype.Repository;

/**
 * 
 * @ClassName: CreditsRecordDaoImpl  
 * @Description: TODO(积分记录数据实现类)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午3:33:02  
 *
 */
@Repository("creditsRecordDao")
public class CreditsRecordDaoImpl extends BaseDaoImpl<CreditsRecord, Serializable> implements CreditsRecordDao {

	/**
	 * 利用反射，获取mapper.xml的namespace
	 * <p>Title: </p>  
	 * <p>Description: </p>
	 */
	public CreditsRecordDaoImpl() {
		namespace = super.getNamespace();
	}
	
	public List<CreditsRecord> getUserSignRecord(Map param){
		try {
			return getSqlSession().selectList(
					getNamespace() + "getUserSignRecord", param);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
	
}
